var arr = [1,2,3,4];
for (const a of arr) {
  console.log(a);
}